﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SqlExecuter.Client.Model
{
    public class FsFile : FileSystemItem
    {
        public FsFile() : base()
        {
            
        }

        public FsFile(FileInfo file)
            : base(file.Name, file.FullName)
        {

        }
        
        public static IEnumerable<FsFile> GetFiles(IEnumerable<FileInfo> files)
        {
            List<FsFile> convertedFiles = new List<FsFile>();
            foreach (FileInfo file in files)
                convertedFiles.Add(new FsFile(file));
            return convertedFiles;
        }
    }
}
